﻿using CQIE.LabAssist.Models;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CQIE.LabAssist.DataAccesss
{

    public interface IUserService
    {
        //登录
        JsonResult Login(string num, string password);

        //通过角色获取对应菜单栏
        JsonResult getMenu(int userId);

        //注册实验管理员
        bool addUser(User user, List<string> roles);
        //获取用户
        JsonResult getUser();

        bool updateUser(User user, List<string> Roles);

        bool deleteUser(int UserId);

        JsonResult getRolesMenuStatistics();
        IActionResult getRolesMenuByid(int roleId);
        JsonResult getAllMenu();
        JsonResult getAllRoles();
        IActionResult getOneMenu();
        JsonResult getOneMenuByid(int roleId);
        bool jusSetting(int roleid, int menid, bool state);
        bool roleSetting(int roleid, string name);

        JsonResult menuTwo(int menid);

        JsonResult getUserInfo(int uid);
        public bool changeUserInfo(User nuser);
        public bool changeUserPassword(User nuser);

    }
}
